//
//  StarGroupView.h
//  MyPopStar
//
//  Created by tarena on 16/1/6.
//  Copyright © 2016年 ssnb. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StarModel.h"
#import "StarView.h"

@class StarGroupView;

@protocol StarGroupViewDelegate <NSObject>

-(void)starGroupView:(StarGroupView *)view touchPoint:(StarPoint)point;
-(void)starGroupView:(StarGroupView *)view overAnimationOver:(BOOL)isOver;
-(void)starGroupView:(StarGroupView *)view ;
-(void)starGroupView:(StarGroupView *)view updateOver:(BOOL)isOver;
@end

@interface StarGroupView : UIView

@property (nonatomic,strong) id<StarGroupViewDelegate> delegate;

-(void)addStarsModelGroup:(NSMutableArray*)starsModelGroup;
/**
 *  @author ssnb, 16-01-12 16:01:45
 *
 *  左移视图
 *
 *  @param starsModelGroup 数据
 */
-(void)updateViewWith:(NSMutableArray *)starsModelGroup;
/**
 *  @author ssnb, 16-01-12 16:01:57
 *
 *  删除消除的星星
 *
 *  @param starsModelGroup 删除后的数据
 *  @param arr             要删除的数据
 */
-(void)updateViewWithd:(NSMutableArray *)starsModelGroup andRemoveStarModelGroup:(NSMutableArray*)arr;
/**
 *  @author ssnb, 16-01-12 16:01:28
 *
 *  是否显示点击星星的闪闪状态
 *
 *  @param array   需要一闪一闪的对象
 *  @param isStart YES表示已经在闪了
 */
-(void)animationWithArray:(NSMutableArray *)array andStatus:(BOOL)isStart;

/**
 *  @author ssnb, 16-01-12 16:01:52
 *
 *  游戏开始时候用于清理无用资源
 */
-(void)clean;
/**
 *  @author ssnb, 16-01-12 16:01:44
 *
 *  当一局游戏结束后执行
 */
-(void)Over;
@end
